#include"ThreadPool.hpp"
#include"Task.hpp"



using namespace ThreadPoolModule;

int main()
{

    // ThreadPool<func_t>* t=new ThreadPool<func_t>();

    // t->Start();
    int count=10;
    while(count)
    {
        ThreadPool<func_t>::GwetInstance()->Enqueue(Download);
        sleep(1);
        count--;
    }
    sleep(1);

    ThreadPool<func_t>::GwetInstance()->Stop();

    //sleep(1);
    ThreadPool<func_t>::GwetInstance()->Join();




    return 0;
}